/**
 * IndexController.java
 *
 * Copyright 2008 Shanghai F-road Commercial Services Co.,Ltd. All rights reserved.
 *
 */
package com.snack.mgmt.contorller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import com.snack.mgmt.ext.JsonView;

/**
 * @author kandyxu
 * 
 * @created 2013-3-17 上午12:47:26
 * 
 * @version 1.0
 * 
 * @Comment
 * 
 */
public class IndexController implements Controller {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.springframework.web.servlet.mvc.Controller#handleRequest(javax.servlet
	 * .http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	@Override
	public ModelAndView handleRequest(HttpServletRequest req,
			HttpServletResponse resp) throws Exception {

		return new ModelAndView(new JsonView()).addObject("test", "aaaa");
	}

}
